package lab02.test06;

public class Ladder{
    //属性：上底，下底，高。
    double upperBase;
    double bottomBse;
    double high;
    double area;
    //行为：返回面积
    double area(){
        area=(upperBase+bottomBse)*high/2;
        return area;
    }}
